tool button: Add an element name
authorMatthias Clasen <mclasen@redhat.com>
Sun, 1 Nov 2015 00:52:09 +0000 (20:52 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 1 Nov 2015 00:52:09 +0000 (20:52 -0400)
Unsurprisingly, it is toolbutton.

gtk/gtktoolbutton.c

index 8ccf3cf0732d052c7e13382d49e4740c82c3e302..127168f81255954ff4088dfa0efe3c939ede8642 100644 (file)
  * that widget is used as the icon. Otherwise, if #GtkToolButton:stock-id is
  * non-%NULL, the icon is determined by the stock item. Otherwise,
  * the button does not have a icon.
+ *
+ * # CSS nodes
+ *
+ * GtkToolButton has a single CSS node with name toolbutton.
  */
 
 
@@ -328,6 +332,8 @@ gtk_tool_button_class_init (GtkToolButtonClass *klass)
                  G_TYPE_NONE, 0);
   
   g_type_class_add_private (object_class, sizeof (GtkToolButtonPrivate));
+
+  gtk_widget_class_set_css_name (widget_class, "toolbutton");
 }
 
 static void